package fivm.cross.platform.steamobj.vm;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import fivm.cross.platform.ficommon.distinguish.GsonSimpleSerializable;

/**
 * Created by Administrator on 2016/6/2.
 * vm的全局框架配置，场景全部在server端
 */
public class VmConfig extends GsonSimpleSerializable {
    @Expose @SerializedName("VmServletWorkPath")//虚拟机的服务端的工作目录
    private String vmServletWorkPath ="E:\\Project\\SpVm\\src\\servlet\\workdir";
    @Expose @SerializedName("LogRelativePath")      //log的工作相对目录
    private String logRelativePath ="log";
    @Expose @SerializedName("SysRelativePath")
    private String sysRelativePath ="sys";
    @Expose @SerializedName("ZygoteRelativePath")
    private String zygoteRelativePath ="zygote";
    @Expose @SerializedName("AppsRelativePath")
    private String appsRelativePath ="apps";

    @Expose @SerializedName("ZygoteBaseFileRelativePath")
    private String zygoteBaseFileRelativePath ="basefiles";     //zygote的基础文件


    public String getZygoteSerlvetRootPath() {
        return vmServletWorkPath+"/"+zygoteRelativePath;
    }


    public String getZygoteBaseFilesPath() {
        return getZygoteSerlvetRootPath()+"/"+zygoteBaseFileRelativePath;
    }

    public String getVmServletWorkPath() {
        return vmServletWorkPath;
    }

    public void setVmServletWorkPath(String vmServletWorkPath) {
        this.vmServletWorkPath = vmServletWorkPath;
    }

    public String getLogRelativePath() {
        return logRelativePath;
    }

    public void setLogRelativePath(String logRelativePath) {
        this.logRelativePath = logRelativePath;
    }

    public String getSysRelativePath() {
        return sysRelativePath;
    }

    public void setSysRelativePath(String sysRelativePath) {
        this.sysRelativePath = sysRelativePath;
    }

    public String getZygoteRelativePath() {
        return zygoteRelativePath;
    }


    public void setZygoteRelativePath(String zygoteRelativePath) {
        this.zygoteRelativePath = zygoteRelativePath;
    }

    public String getAppsRelativePath() {
        return appsRelativePath;
    }

    public void setAppsRelativePath(String appsRelativePath) {
        this.appsRelativePath = appsRelativePath;
    }

    public String getZygoteBaseFileRelativePath() {
        return zygoteBaseFileRelativePath;
    }

    public void setZygoteBaseFileRelativePath(String zygoteBaseFileRelativePath) {
        this.zygoteBaseFileRelativePath = zygoteBaseFileRelativePath;
    }
}
